package com.apps.ftapp.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;

import com.apps.ftapp.R;
import com.apps.ftapp.adapter.SubjectAdapter;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SubjectAddActivity extends BaseActivity implements View.OnClickListener, SubjectAdapter.MyClickListener {


    @BindView(R.id.subject_title)
    TextView subjectTitle;
    @BindView(R.id.more_subject)
    Button moreSubject;
    @BindView(R.id.listView)
    ListView listView;
    @BindView(R.id.refreshLayout)
    SmartRefreshLayout refreshLayout;

    private List dataList;
    private SubjectAdapter subjectAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_subject_add);
        ButterKnife.bind(this);

        initView();

    }

    private void initView() {

        moreSubject.setOnClickListener(this);
        subjectTitle.setOnClickListener(this);
        dataList = new ArrayList();
        for (int i = 0; i < 10; i++) {

            dataList.add(i);

        }
        subjectAdapter = new SubjectAdapter(getApplicationContext(), dataList, "", this);
        listView.setAdapter(subjectAdapter);
    }


    /**
     * '
     *
     * @param view
     */
    @Override
    public void onClick(View view) {

        switch (view.getId()) {
            case R.id.more_subject:

                break;

            case R.id.subject_title:

                break;
        }
    }


    @Override
    public void clickListener(View v) {

    }
}
